#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    int n = 0;
    char num[10] = { 0 };
    int count = 0;
    scanf("%d", &n);
    if (n == 0)
    {
        printf("0");
    }
    else
    {
        int tmp = n;
        while (tmp)
        {
            tmp /= 10;
            count++;
        }
        int i = 0;
        for (i = 0; i < count; i++)
        {
            num[i] = n % 10 + '0';
            n /= 10;
        }
        for (i = 0; i < count; i++)
        {
            printf("%c", num[i]);
        }
    }

    return 0;
}